package face.pay.dao;

import face.pay.entity.CpnCardDetailInfo;
import face.pay.vo.VCpnCardDetail;

import java.util.List;

public interface CpnCardDetailInfoDao {

    public void insert(CpnCardDetailInfo cpnCardDetailInfo);

    public CpnCardDetailInfo getByCpnCode(String cpnCode);

    public CpnCardDetailInfo getById(Long id);


    public void upOpenId(CpnCardDetailInfo cpnCardDetailInfo);

    public  void update(CpnCardDetailInfo cpnCardDetailInfo);

    public  void updateByWxCardIdAndCode(CpnCardDetailInfo cpnCardDetailInfo);

    public List<VCpnCardDetail> queryUsableCards(VCpnCardDetail vCpnCardDetail);

    public  CpnCardDetailInfo  getDetail(CpnCardDetailInfo cpnCardDetailInfo);

    public VCpnCardDetail getVCpnById(Long id);

}
